import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from './routes'


Vue.use(VueRouter)

const originalReplace = VueRouter.prototype.replace;
VueRouter.prototype.replace = function replace (location) {
    return originalReplace.call(this, location).catch(err => err);
};


const router = new VueRouter({
  mode: 'history',
  routes
})

export default router



